package com.yun.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.github.dreamyoung.mprelation.JoinColumn;
import com.github.dreamyoung.mprelation.ManyToOne;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 业务表(Bussiness)表实体类
 *
 * @author makejava
 * @since 2022-01-20 14:51:30
 */
@SuppressWarnings("serial")
@ToString
@Data
@TableName("bussiness")
public class Bussiness extends Model<Bussiness> {
    //主键
    @TableId(value = "bid", type = IdType.AUTO)
    private Integer bid;
    //业务名称
    private String bname;
    //业务类型id
    private Integer typeId;
    //学制n年
    private String constrant;
    //每年学费
    private String tuition;
    //最迟缴费时间
    private Date lastpayTime;
    //合同
    private String contract;
    //备注
    private String remark;
    //逻辑删除
    private String flag;
    //状态，正常0，异常1
    private String status;
    //创建时间
    private Date gmtCreate;
    //修改时间
    private Date gmtModified;
    //业务类型
    @TableField(exist = false)
    private String btname;



    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.bid;
    }
    }

